import 'babel-polyfill'
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import * as ElIcons from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import { Storage, FileSystem, HTMLSystem, Request, mixinGlobal, mixinComponent } from "./utils"
const app = createApp(App).use(ElementPlus)
const storage = new Storage()
const fileSystem = new FileSystem()
const htmlSystem = new HTMLSystem()
const request = new Request()
mixinComponent(app, ElIcons)
mixinGlobal(app, { storage, fileSystem, htmlSystem, request })
Window.prototype.app = app
app.mount('#app')
